package cliente;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import integracion.ControlAccion;
import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;
/**
 *
 * @author luisexposito
 */
public class Cliente 
{

        /*DataInputStream entrada = null;
        DataOutputStream salida = null;
        Socket socket  = null;
        ObjectOutputStream oOutput;
        ObjectInputStream oInput;
        InputStream input;

        socket = new Socket("localhost",7870);

        salida = new DataOutputStream(socket.getOutputStream());
        entrada = new DataInputStream(socket.getInputStream());
        oOutput = new ObjectOutputStream(socket.getOutputStream());
        oOutput.close();
        salida.close();
        entrada.close();
        System.out.println(socket.isClosed());*/
    
    public static void main(String[] args) {
        //UiDatosServer datos = new UiDatosServer();
        //datos.setVisible(true);
        conectar();
               
       
    }

    public static boolean conectar(){
        Socket socket = null;
        String ip = "169.254.240.116";
        int port = 7870;

        try {
            socket = new Socket(ip, port);
            return true;
        } catch (Exception e) {
            System.out.println("no se logro crear la conexion:\n" + e.getMessage());
            return false;
        }

    }
}